package com.hong.collections.blocking;

import java.util.Comparator;
import java.util.concurrent.PriorityBlockingQueue;

/**
 * @Auther: Administrator
 * @Date: 2018/8/11 19:17
 * @Description:
 */
public class PriorityBlockingQueueExample {
    public <T>PriorityBlockingQueue<T> create(int size){
        return new PriorityBlockingQueue<>(size);
    }

    public <T>PriorityBlockingQueue<T> create(int size,Comparator<T> comparable){
        return new PriorityBlockingQueue<>(size,comparable);
    }
}
